#include "child_dialog.h"
#include "ui_child_dialog.h"


child_dialog::child_dialog(QWidget *parent)
    : QDialog(parent), ui(new Ui::child_dialog)
{
    ui->setupUi(this);
    connect(ui->showmainw,&QPushButton::clicked,this,&child_dialog::showgrant);
}

child_dialog::~child_dialog()
{
    delete ui;
}

void child_dialog::showgrant(){
    //发出信号。
    showmainwindow_sig();
    this->hide();
}
